import 'package:flutter/material.dart';
import 'package:test_flutter/utils/request.dart';

class NotfoundPage extends StatelessWidget {
  static const String routeName = "/notfoun";

  initState() {
    print("hello");
    request(Option(
            url:
                'http://192.168.10.202/api/appStoreWarehouse/appWarehouseReceipt/list'))
        .then((result) => {print(result)});
  }

  @override
  Widget build(BuildContext context) {
        request(Option(
            url:
                'http://192.168.10.202/api/appStoreWarehouse/appWarehouseReceipt/list'))
        .then((result) => {
          print(result),
          print(result['success'])
        });
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("Notfound"),
      ),
      body: new Scaffold(
          body: Center(
              child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          Text('NotFound', style: TextStyle(fontSize: 30, color: Colors.red)),
        ],
      ))),
    );
  }
}
